import request from '@/utils/request'

// 查询自定义字段列表
export function listWellCustomFields(query) {
  return request({
    url: '/loss/wellCustomFields/list',
    method: 'get',
    params: query
  })
}

// 查询自定义字段详细
export function getWellCustomFields(id) {
  return request({
    url: '/loss/wellCustomFields/' + id,
    method: 'get'
  })
}

// 新增自定义字段
export function addWellCustomFields(data) {
  return request({
    url: '/loss/wellCustomFields',
    method: 'post',
    data: data
  })
}

// 修改自定义字段
export function updateWellCustomFields(data) {
  return request({
    url: '/loss/wellCustomFields',
    method: 'put',
    data: data
  })
}

// 删除自定义字段
export function delWellCustomFields(id) {
  return request({
    url: '/loss/wellCustomFields/' + id,
    method: 'delete'
  })
}
